import request from '@/utils/request'

// 查询次数卡规格列表
export function listCardNum(query) {
  return request({
    url: '/keep/cardNum/list',
    method: 'get',
    params: query
  })
}

// 查询次数卡规格详细
export function getCardNum(id) {
  return request({
    url: '/keep/cardNum/' + id,
    method: 'get'
  })
}

// 新增次数卡规格
export function addCardNum(data) {
  return request({
    url: '/keep/cardNum',
    method: 'post',
    data: data
  })
}

// 修改次数卡规格
export function updateCardNum(data) {
  return request({
    url: '/keep/cardNum',
    method: 'put',
    data: data
  })
}

// 删除次数卡规格
export function delCardNum(id) {
  return request({
    url: '/keep/cardNum/' + id,
    method: 'delete'
  })
}
